const Koa = require('koa');
const app = new Koa();
const router=require('./router')
const static = require('koa-static');
const path=require('path')


app.use(static(path.resolve(__dirname,'../dist')));

router.forEach(item=>app.use(item))

app.listen(3022,()=>{
    console.log('服务已经启动')
})